package com.banshuibao.bsb_android.util;

import android.content.pm.PackageManager;

/**
 * Created by wangpan on 2016/12/4.
 */

public class PermissionUtil {
    public static boolean verifyPermissions(int[] grantResults){
        if(grantResults.length<1){
            return false;
        }
        for(int result:grantResults){
            if(result!= PackageManager.PERMISSION_GRANTED){
                return false;
            }
        }
        return true;
    }
}
